﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Main_Register" %>

<%@ Register src="../top.ascx" tagname="top" tagprefix="uc1" %>
<%@ Register src="../bottom.ascx" tagname="bottom" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    <title><%=   ConfigurationSettings.AppSettings["title"]   %>-注册纺织城</title>
	<meta name="Keywords" content="<%=   ConfigurationSettings.AppSettings["Keywords"]   %>" />
    <meta name="description" content="<%=   ConfigurationSettings.AppSettings["description"]   %>" />
    <link href="../css/header/header.css" rel="stylesheet" type="text/css" />
    <link href="../css/footer/footer.css" rel="stylesheet" type="text/css" />
    <link href="../css/register/register.css" rel="stylesheet" type="text/css" /> 
</head>
<body>
    <form id="form1" runat="server">
        <uc1:top ID="top1" runat="server" />
        <div id="registerbody">
    
    <table>
        <tr>
        <td class="logintitle" style="height:60px" colspan="3">
                    <span style="margin-left:150px;">欢迎注册纺织城用户</span></td>
        </tr>
        <tr>
            <td>
                <h1>▶ 创建纺织城用户</h1>
                    <h2>用户名：</h2>
            </td>
            <td>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                                <asp:TextBox ID="txtname" runat="server" Width="150px" AutoPostBack="true" OnTextChanged="txtname_TextChanged" CssClass="textbox"  ></asp:TextBox>
                </ContentTemplate>
            </asp:UpdatePanel>
            </td>
            <td>
                <div class="divbg">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                    <ContentTemplate>
                                    <asp:Label ID="labcheck" runat="server" Text="用户名须在<h3>4-16</h3>位，可以使用<h3>小写英文字母、数字以及中文</h3>组合。"></asp:Label>
                                    </ContentTemplate>
                </asp:UpdatePanel>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <h1>▶ 创建密码</h1>
                    <h2>输入密码：</h2>
                    <h2>再次输入密码：</h2>
            </td>
            <td>
                <asp:TextBox ID="txtpwd" runat="server" TextMode="Password" Width="150px" CssClass="textbox" onpaste="return false"></asp:TextBox>
                <asp:TextBox ID="txtpwdagain" runat="server" TextMode="Password" Width="150px" CssClass="textbox" onpaste="return false"></asp:TextBox>
            </td>
            <td>
                <div class="divbg">
                密码长度为<h3>6-10</h3>个字符，由<h3>英文字母、数字</h3>构成，且不区分大小写。
                
                <asp:RegularExpressionValidator ID="revpwd" runat="server" ControlToValidate="txtpwd" ErrorMessage="密码至少6位" ValidationExpression="^.{6,18}$"></asp:RegularExpressionValidator>
                <asp:CompareValidator ID="cvpwd" runat="server" ControlToCompare="txtpwd" ControlToValidate="txtpwdagain" ErrorMessage="两次密码不一致"></asp:CompareValidator>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <h1>▶ 确认保密邮箱</h1>
                    <h2>电子邮箱：</h2>
            </td>
            <td>
                <asp:TextBox ID="txtemail" runat="server" CssClass="textbox"></asp:TextBox>
            </td>
            <td>
                <div class="divbg">请认真填写有效邮箱地址，注册完毕后可在个人资料中修改！
                <asp:RegularExpressionValidator ID="revemail" runat="server" ControlToValidate="txtemail" ErrorMessage="邮箱格式有误" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></div>
            </td>
        </tr>
        <tr>
            <td>
                <h2>请输入验证码：</h2>
            </td>
            <td>
            <asp:TextBox ID="txtVail" runat="server" Width="60px" CssClass="textbox" style=" display:inline" ></asp:TextBox><a href="Register.aspx"><img src="../ValidateCode.aspx" alt="看不清请点击图片" id="IMG1" /></a>
            </td>
            <td>
            
            </td>
        </tr>

    </table>
    <div class="bttn_b"><asp:Button ID="btnadd" runat="server" Text="创建成为纺织城用户" OnClick="btnadd_Click" CssClass="regbtn" style="margin:10px" /></div>
    </div>
        <uc2:bottom ID="bottom1" runat="server" />
    </form>
</body>
</html>
